import Vue from 'vue'
import Router from 'vue-router'
import MyHome from '@/components/home/Home'
import MyTopic from '@/components/topic/Topic'
import MyResult from '@/components/result/result'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: MyHome
    },
    {
      path: '/topic',
      name: 'topic',
      component: MyTopic
    },
    {
      path: '/result',
      name: 'result',
      component: MyResult
    }
  ]
})
